package org.force4spring.query;

import java.util.List;

/**
 * This interface represents a SOQL query and provides methods to manipulate
 * its various clauses and expressions. This class does not actually execute 
 * query. Nor does it have anything to do with result sets. The sole purpose of 
 * this class is to provide the API for constructing SOQL strings suitable for 
 * passing into <code>query</code> method of Force.com Web Services API.
 * 
 * @author Max Rudman
 */
public interface Query extends Expression {
	
	public Query addSelectExpression(Expression expression);
	
	public Query addSelectExpressions(List<Expression> expression);
	
	public List<Expression> getSelectExpressions();
	
	public void removeSelectExpression(Expression expression);
	
	public Query addFromExpression(Expression expression);
	
	public Query addFromExpressions(List<Expression> expression);
	
	public Query addOrderExpression(Expression expression);
	
	public Query removeOrderExpression(Expression expression);
	
	public List<Expression> getFromExpressions();
	
	public List<Expression> getOrderExpressions();
	
	public Expression getWhereExpression();
	
	public void setWhereExpression(Expression expression);
	
	public void setLimit(Integer limit);
	
	public Integer getLimit();
}
